using Castle.Windsor;
using Rhino.Commons.Binsor;

namespace ConsoleApp
{
	public static class IoC
	{
		public static IWindsorContainer CreateContainer()
		{
			return new WindsorContainer();
		}

		public static IWindsorContainer WithBoo(this IWindsorContainer container, string filename)
		{
			var installer = BinsorScript.FromFile(filename);
			return container.Install(installer);
		}
	}
}
